package com.fangzhi.mapper;

import com.fangzhi.mobel.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fangzhi.mobel.dto.OrderExcelDto;
import com.fangzhi.mobel.vo.OrderDetailVo;
import com.fangzhi.mobel.vo.OrderListVo;
import com.fangzhi.mobel.vo.QueryOrderByHotelNameVo;
import com.fangzhi.mobel.vo.QueryOrderLogisticsDetailVo;

import java.util.List;

/**
* @author edy
* @description 针对表【orders】的数据库操作Mapper
* @createDate 2024-09-18 14:12:43
* @Entity com.fangzhi.mobel.Orders
*/
public interface OrdersMapper extends BaseMapper<Orders> {

    List<OrderListVo> selectOrderList(String logisticsStr, String orderId, String name, Integer orderType, String startTime, String endTime, List<Long> accountIds, long roleId, Integer receiptType, Integer orderLogisticsType, Integer offset, Integer pageSize);

    OrderDetailVo queryOrderDetail(String orderId, List<Long> accountIds);

    Long unapprovedOrderListCount(List<Long> accountIds);

    List<OrderListVo> unapprovedOrderList(List<Long> accountIds, Integer offset, Integer pageSize);


    List<OrderListVo> unapprovedOrderListFour(Integer offSet, Integer pageSize);

    Long unapprovedOrderListFiveCount();

    List<OrderListVo> unapprovedOrderListFive(Integer offset, Integer pageSize);

    List<OrderExcelDto> queryOrderExcelList(String orderId, String name, String begin, String end, List<Long> accountIds, Integer userId);

    Long selectOrderListCount(String logisticsStr, String orderId, String name, Integer orderType, String startTime, String endTime, List<Long> accountIds, long roleId, Integer receiptType, Integer orderLogisticsType);

    QueryOrderLogisticsDetailVo queryOrderLogistics(String orderId);

    List<QueryOrderByHotelNameVo> queryOrderByHotelName(String hotelName);
}




